Add a hyperlink in custom_details

Hi there,

I want to customize the PagerDuty alert when it sends to the on call. Basically, I want to add the handling plan for our NOC team. However, the link is pretty long and I want to format it as a hyperlink. Is it possible I can add a hyperlink in the custom_details path in the Event rule? Please let me know if there is any alternative way.

Thank you.

You can add a link in the alert itself. It will appear in the bottom left (or right) of the alert pane in the incident. It’s the links parameter of an alert event. That’s the clean way to include a HREF. If you drop a url in the custom details it should render as a clickable link but it will display as the full url. My org uses these for links back to the origin metric platform. Ugly, but functional.

https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTgx-send-an-alert-event#example-request-payloads

"links": [
    {
      "href": "https://example.com/",
      "text": "Link text"
    }
  ],

Some level of markdown parsing would be pretty neat in alerts. :thinking:

Thanks Preocts.

However, the payload is sent from Pingdom alert, I am checking with them if I can customize the payload but they haven’t replied me yet. Be honest, it is not ugly at all, we use this between SolarWinds and PagerDuty as well.

Thanks for your reply again. Please let me know if you know some other ways.

Hi Chris,

One other thing you could try would be to add the link as part of the custom details or as it’s own schema with Event Rules:

If the link is always the same, the rule will always add it to the event.

Let us know if that would be helpful!

Thanks Nick.

It is what I do right now. But since the link is very long, it is kind of messy. That is the reason I want to create a hyperlink in the custom details. Can I do something like “Handling plan” in the custom details? It doesn’t work for me when I tested it but I probably missed something.

Thank you again.

And I just got the update from Pingdom. I cannot modify the payload. The lady said she will make it as a feature request, but no one knows when it will be in the production environment.

Hi Chris,

Have you tried using a link-shortener here? If the link is very sensitive, your IT team may be able to create a shorter one for you.

Let me know if you think that would be more helpful here. Otherwise, we may need to investigate deeper here and have you open a ticket with us on Support.

Cheers!

Thanks again Nick. The link-shortener doesn’t really work for our organization. But if it is the only way we can do, I think I can explain.

Again, thanks for all your help.